<!--  views/Result.vue -->
<template>
  <div class="box">
    <van-empty
      class="custom-image"
      :image="resultData.image"
      :description="resultData.text"
      image-size = '120'
    >
      <van-button round to="/"  plain  type="primary" class="bottom-button">返回首页</van-button>
    </van-empty>
  </div>
</template>
<script>
import { resultData } from '@/utils/tools';
export default {
  data() {
    return {
        resultData:{}
    }
  },
  mounted(){
      const params = this.$route.params.rsStatus
      console.log(params)
      this.resultData = resultData(params)
  }
}
</script>
<style lang="less" scoped>
.box{
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-image .van-empty__image {
    width: 60px;
    height: 60px;
  }
.bottom-button {
  width: 160px;
  height: 40px;
}
</style>
